<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>Skytech</title>
	<h:outputStylesheet library="css" name="standard.css" />
	<h:outputStylesheet library="css/login" name="reset.css" />
	<h:outputStylesheet library="css/login" name="styles.css" />
</h:head>
<h:body>
	<div id="container-img"></div>
	<div id="container">
		<form action="j_spring_security_check" method="post">
			<p:outputPanel id="panel">
			
				<p:focus context="panel" />
				
				<label for="login"> 
					<h:outputLabel value="Login:" />
				</label>
				
				<p:inputText type="text" id="j_username" autofocus="true" autocomplete="off"/>

				<label for="senha"> 
					<h:outputLabel value="Senha:" />
				</label>

				<p:password type="password" id="j_password" />

				<div id="lower">
					<center>
						<h:commandButton value="Login" type="submit"/>
					</center>
				</div>
				
				<center><h:outputText value="Usuário ou senha incorretos!" rendered="#{param.erro}" style="color: darkred"/></center>
			</p:outputPanel>
		</form>
	</div>
</h:body>
</html>